export default [
  // 首页
  {
    path: '/pms/index',
    name: 'pms:index',
    component: 'index/index',
    hidden: false,
    meta: {
      icon: 'icon-home',
      title: '首页',
      belong: 'OnlinePlate'
    }
  },

  /* 商品管理 */
  {
    path: '/pms/goods',
    name: 'pms:goods',
    hidden: false,
    meta: {
      icon: 'icon-table_icon',
      title: '商品管理',
      belong: 'OnlinePlate'
    },
    children: [{
      path: 'list',
      name: 'pms:goods:list',
      component: 'goods/goodsList',
      hidden: false,
      meta: {
        icon: '',
        title: '商品列表',
        belong: 'OnlinePlate'
      }
    },
    {
      path: 'add',
      name: 'pms:goods:add',
      component: 'goods/add',
      hidden: true,
      meta: {
        icon: '',
        title: '商品添加',
        belong: 'OnlinePlate',
        isWhiteList: true,
        back: true,
        backTips: '返回将导致数据丢失，是否确定返回?'
      }
    },
    {
      path: 'evaluate',
      name: 'pms:goods:evaluate',
      component: 'goods/evaluate',
      hidden: true,
      meta: {
        icon: '',
        title: '商品评价',
        belong: 'OnlinePlate',
        isWhiteList: true,
        back: true
      }
    },
    {
      path: 'edit',
      name: 'pms:goods:edit',
      component: 'goods/edit',
      hidden: true,
      meta: {
        icon: '',
        title: '商品编辑',
        belong: 'OnlinePlate',
        isWhiteList: true,
        back: true,
        backTips: '返回将导致数据丢失，是否确定返回?'
      }
    },
    {
      path: 'brand',
      name: 'pms:brand:read',
      component: 'brand/list',
      hidden: false,
      meta: {
        icon: '',
        title: '品牌列表',
        belong: 'OnlinePlate'
      }
    }
    ]
  },

  /* 订单管理 */
  {
    path: '/pms/order',
    name: 'pms:order',
    hidden: false,
    meta: {
      icon: 'icon-fsuserlecture',
      title: '订单管理',
      belong: 'OnlinePlate'
    },
    children: [{
      path: 'list',
      name: 'pms:order:list',
      component: 'order/orderList',
      hidden: false,
      meta: {
        icon: '',
        title: '订单列表',
        belong: 'OnlinePlate'
      }
    },
    {
      path: 'delivery',
      name: 'pms:order:delivery',
      component: 'order/delivery',
      hidden: false,
      meta: {
        icon: '',
        title: '订单发货',
        belong: 'OnlinePlate',
        back: true,
        isWhiteList: true
      }
    },
    {
      path: 'detail',
      name: 'pms:order:detail',
      component: 'order/detail',
      hidden: false,
      meta: {
        icon: '',
        title: '订单详情',
        belong: 'OnlinePlate',
        back: true,
        isWhiteList: true
      }
    },
    {
      path: 'refund',
      name: 'pms:order:refund',
      component: 'order/refund',
      hidden: false,
      meta: {
        icon: '',
        title: '退款维权',
        belong: 'OnlinePlate'
      }
    },
    {
      path: 'refund_detail',
      name: 'pms:order:refund:detail',
      component: 'order/refundDetail',
      hidden: false,
      meta: {
        icon: '',
        title: '退货单详情',
        belong: 'OnlinePlate',
        back: true,
        isWhiteList: true
      }
    },
    {
      path: 'detailed',
      name: 'pms:order:detailed',
      component: 'order/orderDetailed',
      hidden: false,
      meta: {
        icon: '',
        title: '订单明细',
        belong: 'OnlinePlate'
      }
    },
    {
      path: 'evaluate',
      name: 'pms:order:evaluate',
      component: 'order/evaluate',
      hidden: false,
      meta: {
        icon: '',
        title: '评价列表',
        belong: 'OnlinePlate'
      }
    },
    {
      path: 'evaluate_detail',
      name: 'pms:order:evaluate:detail',
      component: 'order/evaluateDetail',
      hidden: false,
      meta: {
        icon: '',
        title: '评价详情',
        belong: 'OnlinePlate',
        back: true,
        isWhiteList: true
      }
    }
    ]
  },

  /* 用户管理 */
  {
    path: '/pms/member',
    name: 'pms:member',
    hidden: false,
    meta: {
      icon: 'icon-fsuserlecture',
      title: '用户管理',
      belong: 'OnlinePlate'
    },
    children: [{
      path: 'list',
      name: 'pms:member:list',
      component: 'member/list',
      hidden: false,
      meta: {
        icon: '',
        title: '用户列表',
        belong: 'OnlinePlate'
      }
    },
    {
      path: 'integral',
      name: 'pms:member:integral',
      component: 'member/integral',
      hidden: false,
      meta: {
        icon: '',
        title: '积分记录',
        belong: 'OnlinePlate'
      }
    }
      // {
      //   path: 'detail',
      //   name: 'pms:member:detail',
      //   component: 'member/detail',
      //   hidden: false,
      //   meta: {
      //     icon: '',
      //     title: '用户详情',
      //     belong: 'OnlinePlate',
      //     back: true,
      //     isWhiteList: true
      //   }
      // }
    ]
  },

  /* 运费配置 */
  {

    path: '/pms/freight',
    name: 'pms:freight',
    hidden: false,
    meta: {
      icon: 'icon-fsuserlecture',
      title: '运费配置',
      belong: 'OnlinePlate'
    },
    children: [{
      path: 'model',
      name: 'pms:freight:model',
      component: 'freight/model',
      hidden: false,
      meta: {
        icon: '',
        title: '运费模板',
        belong: 'OnlinePlate'
      }
    }]
  },

  // 运营管理
  {
    path: '/operate',
    name: 'operate',
    hidden: false,
    children: [{
      path: 'set',
      name: 'operate:set',
      component: 'operate/set',
      hidden: false,
      meta: {
        icon: 'icon-tongji1',
        title: '电商设置',
        belong: 'OperatePlate'
      }
    },
    {
      path: 'banner',
      name: 'operate:banner',
      component: 'operate/banner/list',
      hidden: false,
      meta: {
        icon: 'iconbanner1',
        title: '首页轮播图',
        belong: 'OperatePlate'
      }
    },
    {
      path: 'advert',
      name: 'operate:advert',
      component: 'operate/banner/advert',
      hidden: false,
      meta: {
        icon: 'iconbanner1',
        title: '首页主题广告',
        belong: 'OperatePlate'
      }
    },
    {
      path: 'hotword',
      name: 'operate:hotword',
      component: 'operate/hotword',
      hidden: false,
      meta: {
        title: '热词配置',
        belong: 'OperatePlate'
      }
    },
    {
      path: 'market/new',
      name: 'operate:market:new',
      component: 'operate/market/new',
      hidden: false,
      meta: {
        title: '新人专享',
        belong: 'OperatePlate'
      }
    },
    {
      path: 'market/new/add',
      name: 'operate:market:new:add',
      component: 'operate/market/new/add',
      hidden: false,
      meta: {
        title: '添加新人专享活动',
        belong: 'OperatePlate',
        back: true,
        isWhiteList: true,
        backTips: '离开添加活动页面将不保存添加的数据，是否离开?'
      }
    },
    {
      path: 'market/new/edit',
      name: 'operate:market:new:edit',
      component: 'operate/market/new/edit',
      hidden: false,
      meta: {
        title: '编辑新人专享活动',
        belong: 'OperatePlate',
        back: true,
        isWhiteList: true,
        backTips: '离开编辑活动页面将不保存修改的数据，是否离开?'
      }
    },
    {
      path: 'market/today',
      name: 'operate:market:today',
      component: 'operate/market/today',
      hidden: false,
      meta: {
        title: '今日爆款',
        belong: 'OperatePlate'
      }
    },
    {
      path: 'market/new/today',
      name: 'operate:market:today:add',
      component: 'operate/market/today/add',
      hidden: false,
      meta: {
        title: '添加今日爆款活动',
        belong: 'OperatePlate',
        back: true,
        isWhiteList: true,
        backTips: '离开添加活动页面将不保存添加的数据，是否离开?'
      }
    },
    {
      path: 'market/today/edit',
      name: 'operate:market:today:edit',
      component: 'operate/market/today/edit',
      hidden: false,
      meta: {
        title: '编辑今日爆款活动',
        belong: 'OperatePlate',
        back: true,
        isWhiteList: true,
        backTips: '离开编辑活动页面将不保存修改的数据，是否离开?'
      }
    },
    {
      path: 'market/theme',
      name: 'operate:market:theme',
      component: 'operate/market/majorTheme',
      hidden: false,
      meta: {
        title: '主题活动',
        belong: 'OperatePlate'
      }
    },
    {
      path: 'market/theme/add',
      name: 'operate:market:theme:add',
      component: 'operate/market/majorTheme/add',
      hidden: false,
      meta: {
        title: '添加主题活动',
        belong: 'OperatePlate',
        back: true,
        isWhiteList: true,
        backTips: '离开添加活动页面将不保存添加的数据，是否离开?'
      }
    },
    {
      path: 'market/theme/edit',
      name: 'operate:market:theme:edit',
      component: 'operate/market/majorTheme/edit',
      hidden: false,
      meta: {
        title: '编辑主题活动',
        belong: 'OperatePlate',
        back: true,
        isWhiteList: true,
        backTips: '离开编辑活动页面将不保存修改的数据，是否离开?'
      }
    },
    {
      path: 'recommend/optimization',
      name: 'operate:recommend:optimization',
      component: 'operate/recommend/optimization',
      hidden: false,
      meta: {
        title: '优选推荐',
        belong: 'OperatePlate'
      }
    },
    {
      path: 'class/activity',
      name: 'operate:class:activity',
      component: 'operate/class/activity',
      hidden: false,
      meta: {
        title: '活动导航',
        belong: 'OperatePlate'
      }
    }
    ]
  },

  // 系统管理
  {
    path: '/system',
    name: 'system',
    hidden: false,
    meta: {
      icon: 'icon-xitong',
      title: '系统管理',
      belong: 'SystemPlate'
    },
    children: [{
      path: 'role',
      name: 'system:role:list',
      component: 'system/role',
      hidden: false,
      meta: {
        icon: '',
        title: '用户角色',
        belong: 'SystemPlate'
      }
    },
    {
      path: 'user',
      name: 'system:user:list',
      component: 'system/userList',
      hidden: false,
      meta: {
        icon: '',
        title: '账号管理',
        belong: 'SystemPlate'
      }
    },
    {
      path: 'store',
      name: 'system:store:list',
      component: 'system/store',
      meta: {
        icon: '',
        title: '店铺管理',
        belong: 'SystemPlate'
      }
    }
    ]
  },

  /* 学习培训 */
  {
    path: '/train',
    name: 'train',
    hidden: false,
    children: [{
      path: 'course',
      name: 'train:course',
      component: 'train/course/list',
      hidden: false,
      meta: {
        icon: 'icon-tongji1',
        title: '课程管理',
        belong: 'TrainPlate'
      }
    },
    {
      path: 'course/add',
      name: 'train:course:add',
      component: 'train/course/add',
      hidden: false,
      meta: {
        icon: '',
        title: '添加课程',
        belong: 'TrainPlate',
        back: true,
        isWhiteList: true
      }
    },
    {
      path: 'course/edit',
      name: 'train:course:edit',
      component: 'train/course/edit',
      hidden: false,
      meta: {
        icon: '',
        title: '修改课程',
        belong: 'TrainPlate',
        back: true,
        isWhiteList: true
      }
    },
    {
      path: 'questions',
      name: 'train:questions',
      component: 'train/questions/list',
      hidden: false,
      meta: {
        icon: 'icon-tongji1',
        title: '试题管理',
        belong: 'TrainPlate'
      }
    },
    {
      path: 'questions/add',
      name: 'train:questions:add',
      component: 'train/questions/add',
      hidden: false,
      meta: {
        icon: '',
        title: '添加试题',
        belong: 'TrainPlate',
        back: true,
        isWhiteList: true
      }
    },
    {
      path: 'questions/edit',
      name: 'train:questions:edit',
      component: 'train/questions/edit',
      hidden: false,
      meta: {
        icon: '',
        title: '修改试题',
        belong: 'TrainPlate',
        back: true,
        isWhiteList: true
      }
    },
    {
      path: 'paper',
      name: 'train:paper',
      component: 'train/paper/list',
      hidden: false,
      meta: {
        icon: 'icon-tongji1',
        title: '试卷管理',
        belong: 'TrainPlate'
      }
    },
    {
      path: 'paper/add',
      name: 'train:paper:add',
      component: 'train/paper/add',
      hidden: false,
      meta: {
        icon: '',
        title: '添加试卷',
        belong: 'TrainPlate',
        back: true,
        isWhiteList: true
      }
    },
    {
      path: 'paper/edit',
      name: 'train:paper:edit',
      component: 'train/paper/edit',
      hidden: false,
      meta: {
        icon: '',
        title: '修改试卷',
        belong: 'TrainPlate',
        back: true,
        isWhiteList: true
      }
    },
    {
      path: 'certificate',
      name: 'train:certificate',
      component: 'train/certificate/list',
      hidden: false,
      meta: {
        icon: 'icon-tongji1',
        title: '培训管理',
        belong: 'TrainPlate'
      }
    },
    {
      path: 'certificate/addd',
      name: 'train:certificate:add',
      component: 'train/certificate/add',
      hidden: false,
      meta: {
        icon: '',
        title: '添加培训',
        belong: 'TrainPlate',
        back: true,
        isWhiteList: true
      }
    },
    {
      path: 'certificate/edit',
      name: 'train:certificate:edit',
      component: 'train/certificate/edit',
      hidden: false,
      meta: {
        icon: '',
        title: '修改培训',
        belong: 'TrainPlate',
        back: true,
        isWhiteList: true
      }
    },
    {
      path: 'student',
      name: 'train:student',
      component: 'train/student/list',
      hidden: false,
      meta: {
        icon: 'icon-tongji1',
        title: '学员答卷',
        belong: 'TrainPlate'
      }
    },
    {
      path: 'student/examine',
      name: 'train:student:examine',
      component: 'train/student/examine',
      hidden: false,
      meta: {
        icon: '',
        title: '答卷审核',
        belong: 'TrainPlate',
        back: true,
        isWhiteList: true
      }
    }
    ]
  }
]
